#pragma once
#define SIZE  1024
//模拟一下stdio.h的一些函数
//#define FlUSH_NONE 0
//#define FlUSH_LINE 1
//#define FlUSH_FULL 2 
enum{

  FLUSH_NONE=0,
  FLUSH_LINE,
  FLUSH_FULL


};
struct TO_FILE
{
  int flag;
  int fileno;
  char outbuffer[SIZE];
  int cap ;
 int size;

};

typedef struct TO_FILE mFILE;
mFILE*mfopen(const char *filename ,const char *mode);
int mwrite(const void *ptr,int num,mFILE*stream);//通过文件流
void mfflush(mFILE*stream);
void mfclose(mFILE*stream);


